package cn.darkhorse.device.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 数据采集 
 * </p>
 *
 * @author yuanjun
 * @since 2023-10-11
 */
@Getter
@Setter
  @TableName("mqtt_data")
@ApiModel(value = "MqttData对象", description = "数据采集 ")
public class MqttData implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("id ")
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("客户端id ")
      private String clientId;

      @ApiModelProperty("主题 ")
      private String topic;

      @ApiModelProperty("数据 ")
      private String data;

      @ApiModelProperty("性能 ")
      private String qos;

      @ApiModelProperty("入库时间 ")
      private LocalDateTime addDate;

      @ApiModelProperty("设备id ")
      private String deviceId;

      @ApiModelProperty("采集时间 ")
      private LocalDateTime clientDate;

      @ApiModelProperty("处理标识( 未处理 1 已处理 2 异常） ")
      private Integer flag;

      @ApiModelProperty("网关数据类型：0101 星原网关 0201 智嵌物联（前2位为网关类型，后2位为数据格式）0301")
      private String dataType;


}
